/**********************************************************************************************************************
 *
 * Project:    mGameEngine
 * File:       view_group.h
 * Author:     k.swiniarsk2
 * Created on: Sep 2, 2013
 *
 **********************************************************************************************************************/

#ifndef VIEW_GROUP_H_
#define VIEW_GROUP_H_

#include "view.h"
#include "../common.h"

namespace mGameEngine
{
namespace GUI
{

class ViewGroup : public View
{
protected:
	List<View *> _views;

public:
	ViewGroup();
	virtual ~ViewGroup();

	const List<View *> &getViews() const
	{
		return _views;
	}

	void addView(View *view, uint8 position = -1);

	void removeView(View *view);

	void removeAllViews();
};

} // namespace GUI
} // namespace mGameEngine

#endif // VIEW_GROUP_H_
